/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.arc.message;

import com.jme3.math.Vector3f;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Adam
 */
@Serializable
public class SerializableVector {
    private float x,y,z;
    
    public SerializableVector()
    { 
        x = 0;
        y = 0;
        z = 0;
    }
    
    public SerializableVector(Vector3f vect)
    {
        x = vect.getX();
        y = vect.getY();
        z = vect.getZ();
    }
    
    public SerializableVector(float x, float y, float z)
    {
        this.x = x;
        this.y = y;
        this.z = z;
    }
    
    public void setX(float x)
    { this.x = x; }
    public void setY(float y)
    { this.y = y; }
    public void setZ(float z)
    { this.z = z; }
    
    public float getX(){ return x; }
    public float getY(){ return y; }
    public float getZ(){ return z; }
    
    public Vector3f toVector3f(){ return new Vector3f(x, y, z); }
}
